#ifndef HUB_H
#define HUB_H

#include <QObject>
#include"imageprovider.h"
#include"imageviewer.h"
#include"mycamera.h"
#include"imageprocess.h"

#include<QThread>

class Hub:public QObject
{
    Q_OBJECT
public:
    Hub();
public:
    MyCamera* m_pMyCamera=nullptr;
    //ImageProvider* m_pImageProvider=nullptr;
    ImageViewer* m_pImageViewer=nullptr;
    ImageProcess* m_pImageProcess=nullptr;

public:
    Q_INVOKABLE void openCam();
    Q_INVOKABLE void closeCam();

    //Q_INVOKABLE void processImg();

public:
    QThread m_Thread;

signals:
    void callQmlRefreshImg();
    void startProcess();
};

#endif // HUB_H
